<html>
<head><meta charset="utf-8"><title>Stress testing for chalk · wg-traits · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/index.html">wg-traits</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/Stress.20testing.20for.20chalk.html">Stress testing for chalk</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="181752835"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/Stress%20testing%20for%20chalk/near/181752835" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/Stress.20testing.20for.20chalk.html#181752835">(Nov 24 2019 at 09:23)</a>:</h4>
<p>Just an announcement that you can use <code>rust-analyzer</code> to stress-test chalk. Specifically, </p>
<ul>
<li>
<p>Substitute version of chalk ra uses here: <a href="https://github.com/rust-analyzer/rust-analyzer/blob/ea3124c12a52f28163a6375b6a5e3c79fc14312d/crates/ra_hir/Cargo.toml#L29-L31" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/blob/ea3124c12a52f28163a6375b6a5e3c79fc14312d/crates/ra_hir/Cargo.toml#L29-L31">https://github.com/rust-analyzer/rust-analyzer/blob/ea3124c12a52f28163a6375b6a5e3c79fc14312d/crates/ra_hir/Cargo.toml#L29-L31</a></p>
</li>
<li>
<p>Run <code>cargo run -p ra_cli --release -- analysis-stats --with-deps ../chalk/</code></p>
<ul>
<li><code>analysis-stats</code> type-checks every function (which naturally uses chalk)</li>
<li><code>../chalk</code> points to the repository to check. <code>chalk</code>or <code>rust-analyzer</code> itself are great candidates</li>
<li><code>--with-deps</code> instructs rust-analyzer to also do checking for dependencies, including rust standard library (you should add it with <code>rustup component add rust-src</code>)</li>
</ul>
</li>
</ul>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>